package com.fantastic.model.pojo.zjs;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author: rxx
 * @since: 2024/6/4 11:13
 * @description: 账号和会员卡关联表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccountMember {
    /**
     * 账号id
     */
    private Integer accountId;
    /**
     * 会员id
     */
    private Integer memberId;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "UTF-8")
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "UTF-8")
    private LocalDateTime endTime;

}
